<?php
header('content-type:text/html;charset=utf-8');
$arr=array('a','b','c',32,324,12.345,123456.789,1.233424,333.4566,98.89);
$pattern='#\d+#';
$res=preg_grep($pattern, $arr);
print_r($res);
echo '<hr/>';
$pattern='#^(\d+)?\.\d{2}$#';
$res=preg_grep($pattern,$arr);
print_r($res);